#define  _CRT_SECURE_NO_WARNINGS

#include "BSTree.h"

void test()
{
	int arr[] = { 3,4,233,5,46,5,7,6,3,46,5,7,457,45,7 };
	BSTree<int> t;
	for (auto e : arr)
	{
		t.Insert(e);
	}
	t.InOrder();
	for (auto e : arr)
	{
		t.Erase(e);
		t.InOrder();
	}
}

int main()
{
	test();
	return 0;
}